package com.mooral.web.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionServlet;

import com.mooral.context.ContextSession;


public class MooralActionServlet extends ActionServlet {

    /**
	 * 
	 */
	private static final long serialVersionUID = -5699752122557552795L;

	public MooralActionServlet() {
	super();
    }

    protected void process(HttpServletRequest request, HttpServletResponse response)
	    throws IOException, ServletException {
		try {
		    ContextSession.initContext(request.getSession());
		    super.process(request, response);
		} finally {
		    ContextSession.disposeContext();
		}
    }

}
